{% extends "myadmin/base.html" %}


{% block mainbody %}

<section class="content-header">
      <h1>
        案例轮播图管理
      </h1>
</section>

<section class="content">

    <div class="box box-default color-palette-box">
        <div class="box-header with-border">
          <h3 class="box-title"><i class="fa fa-tag"></i> 案例轮播图1</h3>
        </div>
        <div class="box-body">
            <form class="form-inline" action="{% url 'myadmin_doweb_article' 1 %}" method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <div class="control-group">
                    <div class="controls">
                        <input type="file" name="banner" class="input-xlarge" id="input01"/>
                        <button type="submit" class="input">上传</button>
                        {% if banner_article1 == 1 %}
                            <img src="/static/web/img/banner_article1.jpg" width="100%" />
                        {% else %}
                            <h4>未找到该轮播图1</h4> 
                        {% endif %}
                    </div>
                </div>
            </form>

        </div>

    </div>

    <div class="box box-default color-palette-box">
        <div class="box-header with-border">
          <h3 class="box-title"><i class="fa fa-tag"></i> 案例轮播图2</h3>
        </div>
        <div class="box-body">
            <form class="form-inline" action="{% url 'myadmin_doweb_article' 2 %}" method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <div class="control-group">
                    <div class="controls">
                        <input type="file" name="banner" class="input-xlarge" id="input02"/>
                        <button type="submit" class="input">上传</button>
                        {% if banner_article2 == 1 %}
                            <img src="/static/web/img/banner_article2.jpg" width="100%"/>
                        {% else %}
                            <h4>未找到该轮播图2</h4> 
                        {% endif %}
                    </div>
                </div>
            </form>

        </div>

    </div>

    <div class="box box-default color-palette-box">
        <div class="box-header with-border">
          <h3 class="box-title"><i class="fa fa-tag"></i> 案例轮播图3</h3>
        </div>
        <div class="box-body">
            <form class="form-inline" action="{% url 'myadmin_doweb_article' 3 %}" method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <div class="control-group">
                    <div class="controls">
                        <input type="file" name="banner" class="input-xlarge" id="input03"/>
                        <button type="submit" class="input">上传</button>
                        {% if banner_article3 == 1 %}
                            <img src="/static/web/img/banner_article3.jpg" width="100%"/>
                        {% else %}
                            <h4>未找到该轮播图3</h4> 
                        {% endif %}
                    </div>
                </div>
            </form>

        </div>

    </div>



</section>


{% endblock %}